package com.example.backencode.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@TableName(value = "user_infor")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {
    @TableId(value = "user_id",type = IdType.AUTO)
    private String userId;

    private String email;
    
    private String name;
    
    private Integer sex;
    
    private String password;
    
    @TableField(value = "create_time")
    private LocalDate create_time;
    
    @TableField(value = "last_login_time")
    private LocalDate lastLoginTime;

    private Integer age;

    private String phone;
}
